/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*-  */
/*
 * catchit
 * Copyright (C) 2013 Ryan Grinkewitz <graphite@Toto>
 * 
 */

#include "game-state.h"


GameState::~GameState(){
	delete player;
	delete computer;
	for(int i = 0; i < GAME_SIZE; i++){
		delete levels[i];
	}
	
}

Player* GameState::getPlayer(){
	return player;
}

void GameState::setPlayer(Player* player){
	this->player = player;
}

Computer* GameState::getComputer(){
	return computer;
}

void GameState::setComputer(Computer* computer){
	this->computer = computer;
}

std::vector<Level*> GameState::getLevels(){
	return levels;
}

void GameState::insertLevel(Level* level){
	levels.push_back(level);
}

Level* GameState::getLevel(int index){
	return levels[index];
}

void GameState::setGamePosition(int game_position){
	this->game_position = game_position;
		
}

int GameState::getGamePosition(){
	return game_position;
}
